<md-dialog aria-label="i18n.createTask}}"  ng-cloak>
  <form>
    <md-dialog-content layout-padding>
      <div layout="row">
        <md-input-container class="md-block" flex>
          <label>template_id</label>
          <input md-maxlength="256" required md-no-asterisk name="template_id" ng-model="task.template_id" readonly>
        </md-input-container>
      </div>
      <div layout="row">
        <md-input-container class="md-block" flex>
          <label>url</label>
          <input md-maxlength="256" required md-no-asterisk name="url" ng-model="task.url">
        </md-input-container>
      </div>
      <div layout="row" ng-repeat="(key, value) in task.data">
        <md-input-container class="md-block" flex>
          <label>{{key}}</label>
          <input md-maxlength="256" required md-no-asterisk name="{{key}}" ng-model="task.data[key].value">
        </md-input-container>
        <md-input-container>
          <label>{{i18n.color}}</label>
          <input md-maxlength="256" required md-no-asterisk name="firstcolor" ng-model="task.data[key].color">
        </md-input-container>
      </div>
    </md-dialog-content>
    <md-dialog-actions layout="row">
      <span flex></span>
      <md-button ng-click="cancel()">
        {{i18n.cancel}}
      </md-button>
      <md-button ng-click="save(task)" ng-disable="!template.template_id">
        {{i18n.createTask}}
      </md-button>
    </md-dialog-actions>
  </form>
</md-dialog>